package com.openx.cloud.server.autoconfigure.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * rest接口配置
 *
 * @author yadu
 */
@Data
@ConfigurationProperties("swagger")
public class SwaggerProperties {


    /**
     * 是否启用swagger 或 @EnableSwagger2 将强制开启
     */
    private boolean enable = true;

    /**
     * swagger接口注册
     */
    private boolean register = false;

    /**
     * 接口文档注册信息mq消息Topic路由key
     */
    private String registerRouteKey = "spring.cloud.topic.api.register";

}
